package com.uubx.pojo;

import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * @Author wyy
 * @Date 2020/12/30 23:53
 * @Version 1.0
 */
@Document(collection = "InsuranceDesc")  //@Document 就是定义一个文档，对象MongoDB存储的Collection（表）的名称是user
public class InsuranceDesc {
    /**
     * 保险描述id
     */
    private String id;
    /**
     * 创建时间
     */
    private Date created;
    /**
     * 更新时间
     */
    private Date updated;

    /**
     * 保险描述
     */
    private String insuranceDesc;

    public InsuranceDesc() {

    }

    public InsuranceDesc(String id, Date created, Date updated, String insuranceDesc) {
        this.id = id;
        this.created = created;
        this.updated = updated;
        this.insuranceDesc = insuranceDesc;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    public String getInsuranceDesc() {
        return insuranceDesc;
    }

    public void setInsuranceDesc(String insuranceDesc) {
        this.insuranceDesc = insuranceDesc;
    }

    @Override
    public String toString() {
        return "InsuranceDesc{" +
                "id='" + id + '\'' +
                ", created=" + created +
                ", updated=" + updated +
                ", insuranceDesc='" + insuranceDesc + '\'' +
                '}';
    }
}
